package cn.webrx.chat;

import java.net.ServerSocket;
import java.net.Socket;

public class Ser {
    public static void main(String[] args) {
        try {
            //Socket套接字(TCP/IP)  List<Socket>
            ServerSocket server = new ServerSocket(6666);
            Socket s = server.accept();
            ScUtil su = new ScUtil(s);
            new Thread(su::read).start();
            new Thread(su::send).start();
        } catch (Exception e) {
            System.out.println(e.toString());
        }
    }
}
